<?php

defined('ACC')||exit('Access Denied');

class MerModel extends Model{
	
	/* 添加商家 */
	public function add($data){
		return $this->db->autoExecute($data,'mer');
	}
	
	/* 获取所有商家 */
	public function merList(){
		$sql='select * from mer';
		return $this->db->getAll($sql);
	}

}


?>